package com.example.demo.gw;

import com.google.common.base.Charsets;
import com.google.common.hash.Hashing;

/**
 * <pre>
 *  描述:
 * </pre>
 *
 * @author godelgnis(wujiaer)
 * @version 1.0.0
 * @date 2022/4/7 10:44
 */
public class CodeCalculate {
    public static void main(String[] args) {
        String s2 = "ies" + "FireHydrant.offline";
        long code2 = Hashing.murmur3_128().hashString(s2, Charsets.UTF_8).asLong();
        System.out.println(code2);
        long fmCode2 = Hashing.murmur3_128().hashString(("ies."+ "FireHydrant.offline"), Charsets.UTF_8).asInt();
        System.out.println(fmCode2);
    }
}
